package com.xhl.shiro.oauth2;


import org.apache.shiro.authc.AuthenticationToken;

/**
 * @ClassName: OAuth2Token
 * @Description: shiro 自定义token令牌
 * @Author:     lisk
 * @Date:        2023-08-18 15:34
 * @Version: 1.0
 */
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token){
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
